﻿using System;
using Caliburn.Micro;

namespace Zero.Frontend
{
    //public class ShowDialogResult : IResult
    //{
    //    private readonly IScreen _screen;

    //    public ShowDialogResult(IScreen screen)
    //    {
    //        _screen = screen;
    //    }

    //    public void Execute(ActionExecutionContext context)
    //    {
    //        var wm = IoC.Get<IWindowManager>();
    //        IoC.BuildUp(_screen);

    //        wm.ShowDialog(_screen);

    //        Completed(this, new ResultCompletionEventArgs() {Error = null, WasCancelled = false});
    //    }

    //    public event EventHandler<ResultCompletionEventArgs> Completed = delegate { };
    //}
}
